﻿using Raven.Client;
using Raven.Client.Document;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BitShuva.Common
{
    public static class RavenDb
    {
        private readonly static IDocumentStore db = CreateDocumentStore();

        private static IDocumentStore CreateDocumentStore()
        {
            var store = new DocumentStore
            {
                ConnectionStringName = "RavenDb"
            };
            store.Initialize();
            return store;
        }

        public static IDocumentStore Store
        {
            get { return db; }
        }
    }
}